package com.chengxiaoxiao.service.impl;

import com.chengxiaoxiao.commons.Page;
import com.chengxiaoxiao.dao.AppinfoDao;
import com.chengxiaoxiao.dao.impl.AppinfoDaoImpl;
import com.chengxiaoxiao.domain.Appinfo;
import com.chengxiaoxiao.service.AppinfoService;

import java.util.List;

public class AppinfoServiceImpl implements AppinfoService {
    private AppinfoDao dao = new AppinfoDaoImpl();

    @Override
    public void add(Appinfo appinfo) {
        dao.add(appinfo);
    }

    @Override
    public void update(Appinfo appinfo) {
        dao.update(appinfo);
    }

    @Override
    public void delete(long id) {
        dao.delete(id);
    }

    @Override
    public List get() {
        return dao.get();
    }

    @Override
    public Appinfo getbyId(long id) {
        return dao.getbyId(id);
    }

    @Override
    public Page getListPage(String num) {
        return null;
    }

    @Override
    public Appinfo getLastVersion() {
       return  dao.getLastVersion();

    }

    @Override
    public List getAll() {

        return dao.getAll();
    }
}
